package driver.ui.driver;

import android.app.Activity;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import driver.ui.R;

public class Pickupnotification extends Activity{
	 private static final int HELLO_ID = 1;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        String ns = Context.NOTIFICATION_SERVICE;
        NotificationManager mNotificationManager = (NotificationManager) getSystemService(ns);
        int icon = R.drawable.notification_icon;        // icon from resources
        CharSequence tickerText = "Pickup Setting";              // ticker-text
        long when = System.currentTimeMillis();         // notification time
        Context context = getApplicationContext();      // application Context
        CharSequence contentTitle = "Pick up with Fred Schmidt";  // expanded message title
        CharSequence contentText = "Tap to confirm details";      // expanded message text

        Intent notificationIntent = new Intent(this, Pickupdetail.class);
        PendingIntent contentIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);

        // the next two lines initialize the Notification, using the configurations above
        Notification notification = new Notification(icon, tickerText, when);
        notification.setLatestEventInfo(context, contentTitle, contentText, contentIntent);
      
        mNotificationManager.notify(HELLO_ID, notification);
    }


}
